package com.sinder.campus_prophet.web.general;

import com.sinder.campus_prophet.core.global.ResponseMessage;
import com.sinder.campus_prophet.service.general.TbStaticInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 静态数据反馈
 * @author v-xyingde
 * @date 2023/5/4/11:11
 */
@RestController
@RequestMapping("staticApi")
@Slf4j
public class StaticApiController {
    private final TbStaticInfoService staticInfoService;

    public StaticApiController(TbStaticInfoService staticInfoService) {
        this.staticInfoService = staticInfoService;
    }

    /**
     * 关于我们
     * @return
     */
    @GetMapping("getAbout")
    public ResponseMessage getAbout() {
        return staticInfoService.getAbout();
    }

    /**
     * 了解社保
     * @return
     */
    @GetMapping("getSocialSecurity")
    public ResponseMessage getSocialSecurity() {
        return staticInfoService.getSocialSecurity();
    }

    /**
     * 查重降重
     */
    @GetMapping("getWeightLoss")
    public ResponseMessage getWeightLoss() {
        return staticInfoService.getWeightLoss();
    }
}
